package com.hmall.search.service;

import com.hmall.common.dto.PageDTO;
import com.hmall.search.pojo.ItemDoc;
import com.hmall.search.pojo.RequestParams;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ISearchService {

    List<String> autoComplement(String key) throws IOException;

    Map<String, List<String>> filterIndex(RequestParams requestParam);

    PageDTO<ItemDoc> listQuery(RequestParams params);

    void deleteById(Long id);

    void insertById(Long id);
}